package com.jzo2o.customer.controller.agency;

import com.jzo2o.customer.model.domain.AgencyCertificationAudit;
import com.jzo2o.customer.model.dto.request.CertificationAuditReqDTO;
import com.jzo2o.customer.service.IAgencyCertificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.undertow.util.BadRequestException;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @Description WorkerCertificationAuditController
 * @Author liujiangyuan
 * @Date 2024-12-03-14:16
 */
@RestController("agencyCertificationAuditController")
@RequestMapping("/agency/agency-certification-audit")
@Api(tags = "机构端 - 实名认证相关接口")
public class AgencyCertificationAuditController {
    @Resource
    private IAgencyCertificationService IAgencyCertificationService;
    @PostMapping
    @ApiOperation("实名认证审核")
    public void agencyauditcertification(@RequestBody AgencyCertificationAudit agencyCertificationAudit) throws BadRequestException {
        IAgencyCertificationService.agencyauditcertification(agencyCertificationAudit);
    }
    @GetMapping("/rejectReason")
    @ApiOperation("查询失败原因")
    public CertificationAuditReqDTO rejectionReason()  {
        return IAgencyCertificationService.rejectionReason();
    }
}
